define('appMain', ['vue',  'iview','resolveComponent','restTemplate', 'siteConfig','cookie'],
function (Vue,iview,resolveComponent,restTemplate, siteConfig,cookie) {
  // 启动iview组件
  Vue.use(iview);
  iview.LoadingBar.start();

  let view=resolveComponent(wxContext.getViewPath());

  view.then((res)=>{
      Vue.component('AppView',res);
      var app = new Vue({
          el: '#app',
          created() {
              //iview.Message.info('初始化完成')
              //document.title=siteConfig.siteName;
              // restTemplate.get('mockdata/sys.json').then((data) => {
              //     document.title = data.name;
              // })
              iview.LoadingBar.finish();
          }
      })
  })



})
